ns16550: fix an incorrect assignment to uart->io_size
authorAyan Kumar Halder <ayan.kumar.halder@amd.com>
Tue, 7 Feb 2023 16:00:47 +0000 (17:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Feb 2023 16:00:47 +0000 (17:00 +0100)
commitd0127881376baeea1e4eb71d0f7b56d942147124
treefe5190811eab80a942d01106e96ceff165155629
parent819a5d4ed8b79e21843d5960a7ab8fbd16f28233
ns16550: fix an incorrect assignment to uart->io_size

uart->io_size represents the size in bytes. Thus, when serial_port.bit_width
is assigned to it, it should be converted to size in bytes.

Fixes: 17b516196c ("ns16550: add ACPI support for ARM only")
Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
master commit: 352c89f72ddb67b8d9d4e492203f8c77f85c8df1
master date: 2023-01-24 16:54:38 +0100
xen/drivers/char/ns16550.c